package rjgc.mall.service;

import rjgc.mall.entity.Goods;
import rjgc.mall.entity.Seller;
import rjgc.mall.entity.TradeAction;
import rjgc.mall.entity.User;

import java.util.List;

public interface SellerService {
    public void publishGoods(String goodsName,
                             String goodsImgUrl,
                             String goodsDescription,
                             Float goodsPrice,
                             String goodsType,
                             Integer status,
                             Integer supply_id);

    public Seller Sellerlogin(String account);

    public void Passwordupdate(String account, String password,String oldPassword);


    public User checkUser(Integer user_id);

    public void Register(String account , String password,String name);

    public List<TradeAction> intendingUser(Integer goods_id);

    public User getintendingUser(Integer id);

    public void chooseUser(Integer id,Integer goods_id);

    public boolean registerComfirm();

    public List<String> Buyerinfo(Integer id);

    public Integer checkgoods();

    public Integer getTradecount(Integer goodsId);

    public Integer inquireStock(Integer goodsid);

    public void reviseStock(Integer goodsid);

    public List<User> checkUser();

    public List<TradeAction> seeUsertradition(Integer user_id);

    public TradeAction seeTraditionbyid(Integer id);

    public List<Goods> seehistoricalgoods();

    public List<Goods> goodsnotbuy();

    public User checkUserbyid(Integer id);

    public Goods checkgoodbyid(Integer id);
    public void publishGoods2(String goodsName,
                             List<String> ImgUrl,
                             String goodsDescription,
                             Float goodsPrice,
                             String goodsType,
                             Integer status,
                             Integer supply_id,
                              Integer stock,
                              String select);
    public void Automaticdismounting(Integer id);

    public void DownGoods(String name);

    public void CancelTrad(Integer id);

    public void AddStock(Integer id);

    public void UpGoods(Integer id);

    public void completeGoods(Integer id);

    //此后为本学期新增
    /************将订单状态从确认订单变更为待发货**********/
    public Integer prepareTheGoods(Integer tradeid);
    /************将订单状态从待发货变更为已发货**********/
    public Integer prepareFineWatingforSendOut(Integer tradeid);

    //增加库存
    public void AddStock2(Integer id,int num);

}
